from django.conf import settings
from django.core import mail

# 发送邮件
def send_email(email,username,content):
    message = f"""
    尊敬的{username}:
    
      {content}
    
    系统邮件请勿回复！
    """
    mail.send_mail(
        subject="达达商城系统邮件",
        message=message,
        from_email=settings.EMAIL_HOST_USER,
        recipient_list=[email]
    )